#ifndef __CLIENTSESSION_HEADER_FILE_2348972348__
#define __CLIENTSESSION_HEADER_FILE_2348972348__
#ifdef __Win32__
#pragma warning(disable:4786)
#endif


#include "OSThread.h"
#include "OSHeaders.h"
#include "CdrLogger.h"

class CRTPSession;
class CRTSPServer;
class CTransfer;
class CClientSession : public OSTask
{
public:
	CClientSession(UInt32 _SessionID);
	~CClientSession();

	Bool Initialize();

	Bool SetTcpFd(Int32 v_inFD, Int32 v_outFD);
	Bool SnarfInputSocket(Int32 v_inFD);
	
	UInt32	GetRTSPStatus();
protected:
	Bool Run();
	Bool Destroy();
	Bool MakeCdr();
	void PrintData(const char *v_Str, UInt32 v_Len);
private:
	UInt32				m_SessionID;

	CRTPSession			*m_pRtpSession;
	CRTSPServer			*m_pRtspServer;
	CTransfer			*m_pTransfer;
	cdrdata				*m_CdrData;
	Int32				m_TimeBuffer;
	Bool				m_IsCdrFree;
};


#endif






















